/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ButtonUserPropus.java
 *
 * Created on Jan 9, 2012, 12:58:08 PM
 */
package views.panes;

/**
 *
 * @author darkdev
 */
public class ButtonUserPropus extends javax.swing.JPanel {

    /** Creates new form ButtonUserPropus */
    public ButtonUserPropus() {
        initComponents();
    }

    String user;
    public ButtonUserPropus(String name) {
        user = name;
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        User = new javax.swing.JButton();
        userName = new javax.swing.JLabel();

        User.setIcon(new javax.swing.ImageIcon(getClass().getResource("/views/propus.png"))); // NOI18N
        User.setMaximumSize(new java.awt.Dimension(100, 100));
        User.setMinimumSize(new java.awt.Dimension(100, 100));
        User.setPreferredSize(new java.awt.Dimension(110, 110));

        userName.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        userName.setText(user);
        userName.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(User, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)
            .addComponent(userName, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(User, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(userName, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton User;
    private javax.swing.JLabel userName;
    // End of variables declaration//GEN-END:variables
}
